package com.fzg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fzg.common.enums.ResponseWrapper;
import com.fzg.entity.UserCollect;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fzg
 * @since 2022-07-05
 */
public interface UserCollectService extends IService<UserCollect> {

    /**
     * 当前登陆的用户收藏日记
     * @param diaryAid 日记Aid
     * @return ResponseWrapper
     */

    ResponseWrapper currentUserCollectCurrentDiary(HttpServletRequest request, Integer diaryAid);

    /**
     * 当前登陆的用户取消收藏日记
     * @param diaryAid 日记Aid
     * @return ResponseWrapper
     */
    ResponseWrapper userCancelCollectDiary(HttpServletRequest request, Integer diaryAid);

}
